import request from '@/utils/request'

// 新增流程
export function addFlow(data) {
	return request({
		url: '/admin/flow/add',
		method: 'post',
		data: data
	})
}
// 修改流程
export function editFlow(data) {
	return request({
		url: '/admin/flow/update',
		method: 'post',
		data: data
	})
}

// 删除流程
export function deleteFlow(data) {
	return request({
		url: '/admin/flow/del',
		method: 'post',
		data: data
	})
}

// 查询流程列表
export function getFlowList(data) {
	return request({
		url: '/admin/flowTemple/lists',
		method: 'post',
		data: data
	})
}
